package top.mybatisx.sql.tester.query;


import top.mybatisx.sql.core.query.SqlWrapper;
import top.mybatisx.sql.core.sql.Select;
import top.mybatisx.sql.core.sql.base.SqlStruct;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 查询包装类
 */
public class QueryxWrapper extends SqlWrapper {

    // 单例模式
    private QueryxWrapper() {
    }

    public static Select create() {
        return new QueryxWrapper();
    }

    public List<Map<String, Object>> list() {
        return list(null);
    }

    public <E> List<E> list(Class<E> clazz) {
        SqlStruct sqlStruct = this.buildSql();
        System.err.println(sqlStruct.getSql());

        return new ArrayList<E>();
    }

}
